/*
 * Copyright 2012 Faculty of Informatics - Masaryk University.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package cz.muni.fi.pa165.creatures.dto.web;

/**
 * @author smikloso
 */
public class PersonFunctionDTO {

    private String personId;
    private String functionId;
    
    public PersonFunctionDTO(String personId, String functionId) {
        this.personId = personId;
        this.functionId = functionId;
    }

    public String getPersonId() {
        return personId;
    }

    public void setPersonId(String personId) {
        this.personId = personId;
    }

    public String getFunctionId() {
        return functionId;
    }

    public void setFunctionId(String functionId) {
        this.functionId = functionId;
    }

    @Override
    public int hashCode() {
        int hash = 3;
        hash = 83 * hash + (this.personId != null ? this.personId.hashCode() : 0);
        hash = 83 * hash + (this.functionId != null ? this.functionId.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final PersonFunctionDTO other = (PersonFunctionDTO) obj;
        if ((this.personId == null) ? (other.personId != null) : !this.personId.equals(other.personId)) {
            return false;
        }
        if ((this.functionId == null) ? (other.functionId != null) : !this.functionId.equals(other.functionId)) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "PersonFunctionDTO{" + "personId=" + personId + ", functionId=" + functionId + '}';
    }
    
}
